﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profile.aspx.vb" Inherits="JamaicanKitchen.Profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <br />
</p>
<p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="KitchenId" HeaderText="KitchenId" 
                SortExpression="KitchenId" />
            <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
                SortExpression="FirstName" />
            <asp:BoundField DataField="Surname" HeaderText="Surname" 
                SortExpression="Surname" />
            <asp:BoundField DataField="DOB" HeaderText="DOB" SortExpression="DOB" />
            <asp:BoundField DataField="RegistrationDate" HeaderText="RegistrationDate" 
                SortExpression="RegistrationDate" />
            <asp:BoundField DataField="PrefaredTaste" HeaderText="PrefaredTaste"
                SortExpression="PrefaredTaste" />
            <asp:BoundField DataField="Sex" HeaderText="Sex" SortExpression="Sex" />
            <asp:ImageField DataAlternateTextField="Portrait" DataImageUrlField="Portrait" 
                HeaderText="Portrait">
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:JamaicanConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:JamaicanConnectionString.ProviderName %>" 
        SelectCommand="SELECT [KitchenId], [FirstName], [Surname], [Portrait], [DOB], [RegistrationDate], [PrefaredTaste], [Sex] FROM [UserProfile] WHERE ([KitchenId] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="KitchenId" QueryStringField="KitchenId" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</p>
<p>
    <asp:Button ID="btn_editProfile" runat="server" 
        PostBackUrl="~/editProfiles.aspx" Text="Edit Profile" Width="74px" />
</p>
<p>
</p>
</asp:Content>
